<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    var placing = parseInt(prompt('请输入名次：'))
    switch (placing) {
        case 1:
            document.write('第一名奖学金1000元');
            break;
        case 2:
            document.write('第二名奖学金800元');
            break;
        case 3:
            document.write('第三名奖学金300元');
            break;

        default:
            document.write('对不起，您没有奖励！');
            break;
    }
</script>

</html>